Defines the base class for a link within a mechanism. A link is a rigid body that carries one coordinate frame for each joint that may attach to it.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | cg(3) |
The x-y-z location of the CG relative to the body coordinate frame. |
|||
| real(kind=real64), | public | :: | inertia(3,3) |
The 3-by-3 inertia tensor as measured about the CG of the body. |
|||
| real(kind=real64), | public | :: | mass |
The mass of the body. |
Gets the number of joint coordinate frames carried by the link.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(link), | intent(in) | :: | this |
The link object. |
The number of joint coordinate frames.
Gets the transformation matrix relating the requested joint coordinate frame to the link's body coordinate frame. The matrix maps coordinates from the joint frame into the body frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(link), | intent(in) | :: | this |
The link object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the joint coordinate frame (1 = first frame). |
The resulting 4-by-4 transformation matrix.